﻿using Prism.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using 基于WPF的电缆采样数据分析系统.MsgEvents;

namespace 基于WPF的电缆采样数据分析系统.Views.TDRWork.MenuPage
{
    /// <summary>
    /// CursorSettingPageUC.xaml 的交互逻辑
    /// </summary>
    public partial class CursorSettingPageUC : UserControl
    {

        /// <summary>
        /// 构造器
        /// </summary>
        public CursorSettingPageUC()
        {
            InitializeComponent();


            // 初始化按钮样式
            InitBtnStyle();
        }

        /// <summary>
        /// 初始化按钮样式
        /// </summary>
        private void InitBtnStyle()
        {
            OpenBtn.BorderThickness = new Thickness(0);
            CloseBtn.BorderThickness = new Thickness(0,0,4,0);
        }

        /// <summary>
        /// 开启按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OpenBtn_Click(object sender, RoutedEventArgs e)
        {
            OpenBtn.BorderThickness = new Thickness(0, 0, 4, 0);
            CloseBtn.BorderThickness = new Thickness(0);

        }

        /// <summary>
        /// 关闭按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void CloseBtn_Click(object sender, RoutedEventArgs e)
        {
            OpenBtn.BorderThickness = new Thickness(0);
            CloseBtn.BorderThickness = new Thickness(0, 0, 4, 0);


        }
    }
}
